abstract class Processor {
  String cores = ''; //内核
  void arch(String name); //芯片制程
}

abstract class Camera {
  String resolution = ''; //分辨率
  brand(String name); //品牌
}

//继承接口的关键字是 implements

//继承的接口中的所有方法和属性都必须实现
class Phone implements Processor, Camera {
  @override
  String cores;

  @override
  String resolution;

  Phone(this.cores, this.resolution);
  @override
  void arch(String name) {
    print('芯片制程: ' + name);
  }
 
  @override
  brand(String name) {
    print('摄像头品牌 :' + name);
  }
}

void main(List<String> args) {
  var p = Phone('四核', '3000万');
  p.arch('5nm');
  p.brand('莱卡');
}
